home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Clear / Static / Makefile < prev   
Makefile  |  1995-09-04  |  2KB  |  90 lines

  1.  
  2. ObjectFiles    =        \
  3.             o.Create    \
  4.             o.Free    \
  5.             o.Init    \
  6.             o.Load    \
  7.             o.Save    \
  8.  
  9.  
  10. LibName        =    Clear
  11.  
  12. # Template makefile which makes normal 
  13. # .o files for use in the main static
  14. # linking DeskLib.
  15.  
  16. # The macro $(ObjectFiles) should be set at the 
  17. # start of this file to be a space-separated
  18. # list of object files.
  19. # This is done by 'Makatic'.
  20.  
  21. # The macro $(LibName) should also be set at the 
  22. # start of this file, to be the name of the 
  23. # DeskLib sublibrary.
  24. # This is done by 'Makatic'.
  25.  
  26. # Compiler and linker flags, These can be anything. 
  27. # All essential flags are included in the macros 
  28. # $(CC) and $(ASM)
  29. #
  30. CCFlags        =    -ffahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
  31. ASMFlags    =    -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
  32.  
  33. CC        =    cc -c $(CCFlags)
  34. ASM        =    objasm $(ASMFlags)
  35.  
  36.  
  37. # -------------------------------------------------------
  38. # Everything below here should probably not be changed...
  39. # -------------------------------------------------------
  40.  
  41. # Here's what we want to make...
  42. #
  43. All:        $(ObjectFiles)
  44.  
  45.  
  46. VPATH = @.^
  47.  
  48. .SUFFIXES:    .c .s .o
  49.  
  50. .c.o:
  51.     $(CC) $< -o $@
  52.     
  53. .s.o:
  54.     $(ASM) -from $< -to $@
  55.  
  56.  
  57.  
  58. # Dynamic dependencies:
  59. o.Create:    ^.c.Create
  60. o.Create:    DeskLib:h.Clear
  61. o.Create:    DeskLib:h.Wimp
  62. o.Create:    DeskLib:h.Core
  63. o.Create:    DeskLib:h.Mem
  64. o.Create:    DeskLib:h.Clear
  65. o.Create:    ^.h.ClearDefs
  66. o.Free:    ^.c.Free
  67. o.Free:    DeskLib:h.Clear
  68. o.Free:    DeskLib:h.Wimp
  69. o.Free:    DeskLib:h.Core
  70. o.Free:    DeskLib:h.Mem
  71. o.Init:    ^.c.Init
  72. o.Init:    DeskLib:h.Clear
  73. o.Init:    DeskLib:h.Wimp
  74. o.Init:    DeskLib:h.Core
  75. o.Init:    ^.h.ClearDefs
  76. o.Load:    ^.c.Load
  77. o.Load:    DeskLib:h.Clear
  78. o.Load:    DeskLib:h.Wimp
  79. o.Load:    DeskLib:h.Core
  80. o.Load:    DeskLib:h.File
  81. o.Load:    DeskLib:h.SWI
  82. o.Load:    DeskLib:h.Mem
  83. o.Save:    ^.c.Save
  84. o.Save:    DeskLib:h.Clear
  85. o.Save:    DeskLib:h.Wimp
  86. o.Save:    DeskLib:h.Core
  87. o.Save:    DeskLib:h.File
  88. o.Save:    DeskLib:h.SWI
  89. o.Save:    DeskLib:h.Wimp
  90.